using System.Collections;
using Rdl;

namespace GTame.ReportParser
{

    public class MarkerType
    {

        private string _Size;
        private GTame.ReportParser.StyleType _Style;
        private Rdl.MarkerTypeType _Type;

        public string Size
        {
            get
            {
                return _Size;
            }
            set
            {
                _Size = value;
            }
        }

        public GTame.ReportParser.StyleType Style
        {
            get
            {
                if (_Style == null)
                    _Style = new GTame.ReportParser.StyleType();
                return _Style;
            }
            set
            {
                _Style = value;
            }
        }

        public Rdl.MarkerTypeType Type
        {
            get
            {
                return _Type;
            }
            set
            {
                _Type = value;
            }
        }

        public MarkerType()
        {
        }

        public Rdl.MarkerType Write()
        {
            Rdl.MarkerType markerType = new Rdl.MarkerType();
            System.Collections.ArrayList arrayList = new System.Collections.ArrayList();
            if (_Size != null)
                arrayList.Add(_Size);
            if (_Style != null)
                arrayList.Add(_Style.Write());
            arrayList.Add(_Type);
            markerType.Items = arrayList.ToArray();
            arrayList = null;
            return markerType;
        }

    } // class MarkerType

}

